package com.readingtree.library.service;

import com.readingtree.library.domain.SecurityUser;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/4/19.
 */
@Service
public interface JWTTokenService {

    String createJWTToken(SecurityUser user);

    boolean checkJWTToken(String token);

    void removeJWTToken(String token);

    SecurityUser getUserFromToken(String token);

}
